package demo.Design.Module.Porxy.Static;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/10/14-10-14-9:23
 * @Description：demo.Design.Module.Porxy.Static   代理类
 */
public class Proxy implements Sing{

    private  Sing sing;

    public Proxy(Sing sing) {
        this.sing = sing;
    }

    @Override
    public void sing() {
        System.out.println("hello");
        sing.sing();
        System.out.println("goodbye");
    }
}
